package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicPoWareDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

/**
 * ��ݷ��ʶ���ӿ�
 * @since 2013-07-24
 */
public interface LogicPoWareDAO {

    /**
     * �������
     * @param logicPoWareDO
     * @return ������ݵ�����
     */
    public String insertLogicPoWareDO(LogicPoWareDO logicPoWareDO) throws DataAccessException;

    /**
     * ͳ�Ƽ�¼��
     * @param logicPoWareDO
     * @return ����ļ�¼��
     */
    public Integer countLogicPoWareDOByExample(LogicPoWareDO logicPoWareDO) throws DataAccessException;

    /**
     * ���¼�¼
     * @param logicPoWareDO
     * @return ��Ӱ�������
     */
    public Integer updateLogicPoWareDO(LogicPoWareDO logicPoWareDO) throws DataAccessException;

    /**
     * ��ȡ�����б�
     * @param logicPoWareDO
     * @return �����б�
     */
    public List<LogicPoWareDO> findListByExample(LogicPoWareDO logicPoWareDO) throws DataAccessException;

    /**
     * ��������ȡlogicPoWareDO
     * @param id
     * @return logicPoWareDO
     */
    public LogicPoWareDO findLogicPoWareDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * ɾ���¼
     * @param id
     * @return ��Ӱ�������
     */
    public Integer deleteLogicPoWareDOByPrimaryKey(String id) throws DataAccessException;
    
    public List<LogicPoWareDO> find(SearchConditions scs) throws DataAccessException;
    
    public Integer count(SearchConditions scs) throws DataAccessException;
    
    public Integer untreatedPowarecode(Map<String, Object> map) throws DataAccessException ;
    
    public List<LogicPoWareDO> findAuthorityStatus(SearchConditions scs) throws DataAccessException;
    
    public Integer findAuthorityStatusCount(SearchConditions scs) throws DataAccessException;

}